//
//  TopBarView.m
//  maipu-wlan-guest
//
//  Created by FirE on 15-3-11.
//  Copyright (c) 2015年 maipu. All rights reserved.
//

#import "TopBarView.h"

@interface TopBarView ()

@property (weak, nonatomic) IBOutlet UIView *contentView;
@property (weak, nonatomic) IBOutlet UIButton *leftButton;
@property (weak, nonatomic) IBOutlet UIButton *rightButton;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UIView *lineView;

@end

@implementation TopBarView

- (void)awakeFromNib {
    [super awakeFromNib];
    _contentView.backgroundColor = [SHUIToolkit colorWithHexString:@"#f9f9f9"];
    _titleLabel.textColor = [SHUIToolkit colorWithHexString:@"#3f3f3f"];
    [_leftButton setTitleColor:[SHUIToolkit colorWithHexString:@"#3f3f3f"] forState:UIControlStateNormal];
    [_leftButton setTitleColor:[SHUIToolkit colorWithHexString:@"#3f3f3f"] forState:UIControlStateHighlighted];
    [_rightButton setTitleColor:[SHUIToolkit colorWithHexString:@"#3f3f3f"] forState:UIControlStateNormal];
    [_rightButton setTitleColor:[SHUIToolkit colorWithHexString:@"#3f3f3f"] forState:UIControlStateHighlighted];
    _lineView.backgroundColor = [SHUIToolkit colorWithHexString:@"#b3b3b3"];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
